
<div id="favorites-albums">
<h4><?php echo T_('Your Favorites Albums'); ?></h4>
<?php 
  foreach ($user->FavoritesAlbums as $falbum){
?>   
  <div class="favorite">
    <div class="favorite-header">
      <a class="fav_left" href="<?php echo WebRoot ?>album.php?idAlbum=<?php echo $falbum->idAlbum ?>">
        <?php echo $falbum->Name ?>
      </a>
      <a class="fav_right" href="<?php echo WebRoot ?>controllers/removeFavoriteAlbum.php?id=<?php echo $falbum->idAlbum ?>">
        <span title="<?php echo T_('Remove from favorites') ?>" class="remove-icon"></span>
      </a>
    </div>
    <p>
      <?php echo ($falbum->Description != null) ? $falbum->Description : T_('- no description -'); ?>
    </p>      
    <div class="clear"></div>
  </div>      
<?php          
          //<img src="'.WebRoot.'themes/'.$theme.'/images/delete.png" alt="'.T_('Remove').'" title="'.T_('Remove').'"/></a>'.nl;
  }
 ?>
</div>

<div id="favorites-users">
<h4><?php echo T_('Your Favorites Users'); ?></h4>
<?php 
  foreach ($user->FavoritesUsers as $fuser) {
?>   
  <div class="favorite">
    <div class="favorite-header">
      <a class="fav_left" href="<?php echo WebRoot ?>profile.php?idAlbum=<?php echo $fuser->idUser ?>">
        <?php echo $fuser->UserName ?>
      </a>
      <a class="fav_right" href="<?php echo WebRoot ?>controllers/removeFavoriteUser.php?id=<?php echo $fuser->idUser ?>">
        <span title="<?php echo T_('Remove from favorites') ?>" class="remove-icon"></span>
      </a>
    </div>        
    <div class="clear"></div>
  </div>      
<?php             
  }         
?>
</div>